home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD v2.1 / Amiga Developer CD v2.1.iso / Contributions / Haage_&_Partner / Storm-Projects / NDKExamples1 / locale / Localize / localize2 < prev    next >
AmigaDOS Script File  |  1999-04-16  |  1KB  |  50 lines

  1. .key "FILES/A/M"
  2. .bra {
  3. .ket }
  4.  
  5. ;
  6. ;    First, extract the strings...
  7. ;
  8. echo {FILES}
  9.  
  10. localize >ram:localize.tmp {FILES}
  11.  
  12. ;
  13. ;    Then let the user edit them with emacs
  14. ;
  15. memacs ram:localize.tmp
  16.  
  17. ;
  18. ;    Finally, patch the changes back in:
  19. ;
  20. ;    MC    "catalog.cd"
  21. ;        The strings from all of the {FILES} will be merged in
  22. ;        the file named 'catalog.cd'
  23. ;
  24. ;    DIR    "work:ls"
  25. ;        The generated source files will be stored in the 'ls'
  26. ;        directory on the 'work:' partition.
  27. ;
  28. ;    Func    S
  29. ;        The name of the function that will be called to
  30. ;        retrieve a string is 'S'
  31. ;
  32. ;    TEMP    "%F(%I)"
  33. ;        The retrival function will be passed one argument
  34. ;        which is the message ID.
  35. ;
  36. ;    PF    getstring.pf
  37. ;        Prepend the contents of 'getstring.pf' to the
  38. ;        generated source file.  'getstring.pf' supplies an
  39. ;        #include, a #define, and a prototype.
  40. ;
  41. ;    AF    getstring.af
  42. ;        Append the file 'getstring.af' to the end of the
  43. ;        generated source file.  'getstring.af' supplies the
  44. ;        function prototyped by 'getstring.pf'.
  45. ;
  46. ;    ram:localize.tmp
  47. ;        This is the source of the string records.
  48. ;
  49. localize patch MC "catalog.cd" DIR "work:ls" FUNC "S" TEMP "%F(%I)" PF getstring.pf AF getstring.af ram:localize.tmp
  50.